#ifndef _AUDIOMQTT_
#define _AUDIOMQTT_

#include <PubSubClient.h>
#include <WiFi.h>
#include "IISAudio/IISAudio.h"


void audioCallback(char* topic, byte* payload, unsigned int length);
void reconnect() ;
void sendData(const uint8_t  *data, uint16_t len);
void sendStopSignal();

extern bool audio_recive;

typedef struct {
  byte* data;
  unsigned int length;
} MqttMessage;

#endif
